{extend name="common/base"/}
{block name="style"}

<link rel="stylesheet" href="{__CSS__}/user.css?v={:get_system_config('web','version')}" media="all">
{/block}
<!-- 主体 -->
{block name="body"}
{include file="common/header" nav='info' /}
<div class="user">
	<div class="user-home"><a href="/">首页</a> - 消息中心</div>
	<div class="user-box clearfix">
		<div class="l user-menu">
			{include file="common/messagemenu" nav='info' /}
		</div>
		<div class="r user-right">

			<div class="user-info">
				<dl class="clearfix">
					<dt class="user-info-img"><img src="{$userInfo.headimgurl}" /></dt>
					<dd class="user-info-name">{$userInfo.showname} {$userInfo.name} [{$userInfo.level_title}]  </dd>
					<dd class="user-info-tips">
						{$userInfo.desc}
					</dd>
					<dd>签到情况：{$userInfo.score3}，积分：{$userInfo.score}</dd>
				</dl>
			</div>
			<div class="user-detail">
			<div class="layui-tab" lay-filter="test-handle" lay-allowclose="true">
			  <ul class="layui-tab-title">
			    <li  ><a href="{:url('/home/message/index')}">新消息</a></li>
			    <li class="layui-this"><a href="{:url('/home/message/is_read_message')}">已读消息</a></li>
			    <li ><a href="{:url('/home/message/all_message')}">所有消息</a></li>
			  </ul>
				<div class="user-detail-h3">已读消息 </div>
				<div class="user-message-detail">
					<ol class="decimal">
					{volist name="messages" id="message" key="k" empty="暂无数据"}
					    <li>{$message.content} <span class="ctime">{$message.create_time|date='Y-m-d h:i:s'}</span></li>						
						{/volist}
					</ol>
				</div>

			</div>

		</div>
	</div>
</div>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script>

</script>
{/block}
<!-- /脚本 -->